package com.baide.sanguanheyi.weight;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = {"classpath:weight.properties"})
@ConfigurationProperties(prefix = "weight")
public class WeightConfig {

    private String portName;
    private Double toupanWeight;

    public Double getToupanWeight() {
        return toupanWeight;
    }

    public void setToupanWeight(Double toupanWeight) {
        this.toupanWeight = toupanWeight;
    }

    public String getPortName() {
        return portName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }
}
